CREATE TABLE [dbo].[BookCategory_Image]
(
[BookCategoryId] [int] NOT NULL,
[ImageId] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BookCategory_Image] ADD CONSTRAINT [PK_BookCategory_Image] PRIMARY KEY CLUSTERED  ([BookCategoryId], [ImageId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BookCategory_Image] ADD CONSTRAINT [FK_BookCategory_Image_BookCategory] FOREIGN KEY ([BookCategoryId]) REFERENCES [dbo].[BookCategory] ([Id])
GO
ALTER TABLE [dbo].[BookCategory_Image] ADD CONSTRAINT [FK_BookCategory_Image_Image] FOREIGN KEY ([ImageId]) REFERENCES [dbo].[Image] ([Id])
GO
